from flask import Blueprint, render_template, jsonify
from app import db

bp = Blueprint("main", __name__)

@bp.route("/")
def index():
    return render_template("index.html")

@bp.route("/compare/profile")
def compare_profile():
    """个人画像及组织分析对比页面"""
    from app.services.comparison_service import ComparisonService
    comparison_service = ComparisonService()
    
    # 获取组织和员工数据对比结果
    org_data = comparison_service.compare_organization_data()
    emp_data = comparison_service.compare_employee_data()
    
    return render_template("compare/profile.html", 
                         org_data=org_data,
                         emp_data=emp_data)
